<%@ taglib prefix="s" uri="/struts-tags" %>
<%--
  Created by IntelliJ IDEA.
  User: 高金磊
  Date: 2021/6/1
  Time: 15:39
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>ManagerInfoAlt</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
    <link rel="icon" href="<%=basePath%>favicon.ico" type="image/ico">
    <link href="<%=basePath%>css/bootstrap.min.css" rel="stylesheet">
    <link href="<%=basePath%>css/fonts.css" rel="stylesheet">
    <link href="<%=basePath%>css/style.css" rel="stylesheet">
</head>
<body>
<s:form  method="get" >
    <div class="col-md-6">

        <div class="card">
            <div class="card-header"><h4>管理员信息修改</h4></div>

            <div class="card-body">
                <span style="font-size: small;color:red;"><s:actionerror/></span>
                <span style="font-size: small;color: #0FB25F"><s:actionmessage/></span>
                <div class="form-group">
                    <label for="example-nf-2">ID</label>
                    <input class="form-control" disabled id="example-nf-2" value=<s:property value="#request.administratorEntity.id"/> >
                </div>

                <div class="form-group">
                    <label for="example-nf-1">账户名称<small>(用于登录,日志显示)</small></label>
                    <input class="form-control" type="text" id="example-nf-1" name="name" value=<s:property value="#request.name"/> >
                </div>

                <div class="form-group">
                    <label for="example-nf-5">旧密码
                        <%--<small style="font-size: 11px;color: red">(*必填)</small>--%>
                    </label>
                    <input class="form-control" required minlength="6" maxlength="18" type="password" id="example-nf-5" name="oldpassword" placeholder="输入原密码来验证身份" value=<s:property value="#request.oldpassword"/>>
                </div>
                <div class="form-group">
                    <label for="example-nf-6">新密码</label>
                    <input class="form-control" minlength="6" maxlength="18" type="password" id="example-nf-6"  name="newpassword" placeholder="填写以修改" value=<s:property value="#request.newpassword"/>>
                </div>
                <div class="form-group">
                    <button class="btn btn-primary" type="submit" formaction="ManagerInfoAlt" >提交修改</button>
                </div>
            </div>

        </div>
    </div>
        </s:form>
        <div class="col-md-6" >
            <div class="card">

                <div class="container-fluid"  style="margin-bottom:90px;" >

                    <div class="row" style="margin-top:15px;">
                        <div class="col-lg-12">
                            <div class="card">
                                <div class="card-header"><h4>资料变更历史记录</h4></div>
                                <div class="card-body" style="max-height: 450px;overflow-y: auto">
                                    <table class="table table-striped table-hover">
                                        <thead>
                                        <tr>

                                        </tr>
                                        </thead>
                                        <tbody>
                                        <s:iterator value="#request.altLog" var="data">
                                            <tr>
                                                <td> <s:property value="#data" /></td>
                                            </tr>

                                        </s:iterator>
                                        </tbody>
                                    </table>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>



</body>
</html>
